package com.zhongjian.technologycal.mall.bean;

import java.util.List;

/**
 * Created by wei on 2018/1/19.
 * 购物车实体类
 */

public class ShoppingCartBeam {


    /**
     *
     * error_code : 0
     * error_message : 成功
     * data : [{"producerName":"","productList":[{"id":528,"product":{"id":176,"productname":"数字成功学","price":9000,"oldprice":13199,"freight":0,"elecnum":9000,"producerno":"","producertel":"","producername":"","productphotos":[{"photo":"/upload/pics/c628c4c7-c572-4600-8e86-5278c6612549.jpg"}]},"productSpec":{"id":151,"specname":"课程","price":0,"elecNum":0},"productnum":2},{"id":1021,"product":{"id":92,"productname":"金妙巢","price":256,"oldprice":428,"freight":0,"elecnum":160,"producerno":"","producertel":"","producername":"","productphotos":[{"photo":"/upload/pics/dfd5ea29-012e-44e2-b420-f0b099435fc6.jpg"}]},"productSpec":{"id":77,"specname":"每盒一瓶","price":0,"elecNum":0},"productnum":1}]},{"producerName":"向家","productList":[{"id":2673,"product":{"id":291,"productname":"武夷山正岩水仙","price":488,"oldprice":568,"freight":0,"elecnum":180,"producerno":"SA","producertel":"向家","producername":"向家","productphotos":[{"photo":"/upload/pics/f741c3a5-9778-4db2-a3a5-76fdec61d260.jpg"}]},"productSpec":{"id":451,"specname":"盒","price":0,"elecNum":0},"productnum":2}]},{"producerName":"段家","productList":[{"id":1517,"product":{"id":272,"productname":"云腿月饼","price":105,"oldprice":150,"freight":0,"elecnum":5,"producerno":"SB","producertel":"段家","producername":"段家","productphotos":[{"photo":"/upload/pics/beae1d55-52a3-4651-bec0-28ad6580a4b0.jpg"}]},"productSpec":{"id":432,"specname":"大团圆 礼盒","price":0,"elecNum":0},"productnum":1},{"id":1573,"product":{"id":272,"productname":"云腿月饼","price":105,"oldprice":150,"freight":0,"elecnum":5,"producerno":"SB","producertel":"段家","producername":"段家","productphotos":[{"photo":"/upload/pics/beae1d55-52a3-4651-bec0-28ad6580a4b0.jpg"}]},"productSpec":{"id":430,"specname":"碟舞花语礼盒","price":0,"elecNum":0},"productnum":1}]}]
     */

    private int error_code;
    private String error_message;
    private List<DataBean> data;

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public String getError_message() {
        return error_message;
    }

    public void setError_message(String error_message) {
        this.error_message = error_message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * producerName :
         * productList : [{"id":528,"product":{"id":176,"productname":"数字成功学","price":9000,"oldprice":13199,"freight":0,"elecnum":9000,"producerno":"","producertel":"","producername":"","productphotos":[{"photo":"/upload/pics/c628c4c7-c572-4600-8e86-5278c6612549.jpg"}]},"productSpec":{"id":151,"specname":"课程","price":0,"elecNum":0},"productnum":2},{"id":1021,"product":{"id":92,"productname":"金妙巢","price":256,"oldprice":428,"freight":0,"elecnum":160,"producerno":"","producertel":"","producername":"","productphotos":[{"photo":"/upload/pics/dfd5ea29-012e-44e2-b420-f0b099435fc6.jpg"}]},"productSpec":{"id":77,"specname":"每盒一瓶","price":0,"elecNum":0},"productnum":1}]
         */

        private String producerName;
        private List<ProductListBean> productList;

        public String getProducerName() {
            return producerName;
        }

        public void setProducerName(String producerName) {
            this.producerName = producerName;
        }

        public List<ProductListBean> getProductList() {
            return productList;
        }

        public void setProductList(List<ProductListBean> productList) {
            this.productList = productList;
        }

        public static class ProductListBean {
            /**
             * id : 528
             * product : {"id":176,"productname":"数字成功学","price":9000,"oldprice":13199,"freight":0,"elecnum":9000,"producerno":"","producertel":"","producername":"","productphotos":[{"photo":"/upload/pics/c628c4c7-c572-4600-8e86-5278c6612549.jpg"}]}
             * productSpec : {"id":151,"specname":"课程","price":0,"elecNum":0}
             * productnum : 2
             */

            private int id;
            private ProductBean product;
            private ProductSpecBean productSpec;
            private int productnum;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public ProductBean getProduct() {
                return product;
            }

            public void setProduct(ProductBean product) {
                this.product = product;
            }

            public ProductSpecBean getProductSpec() {
                return productSpec;
            }

            public void setProductSpec(ProductSpecBean productSpec) {
                this.productSpec = productSpec;
            }

            public int getProductnum() {
                return productnum;
            }

            public void setProductnum(int productnum) {
                this.productnum = productnum;
            }

            public static class ProductBean {
                /**
                 * id : 176
                 * productname : 数字成功学
                 * price : 9000
                 * oldprice : 13199
                 * freight : 0
                 * elecnum : 9000
                 * producerno :
                 * producertel :
                 * producername :
                 * productphotos : [{"photo":"/upload/pics/c628c4c7-c572-4600-8e86-5278c6612549.jpg"}]
                 */

                private int id;
                private String productname;
                private int price;
                private int oldprice;
                private int freight;
                private int elecnum;
                private String producerno;
                private String producertel;
                private String producername;
                private List<ProductphotosBean> productphotos;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getProductname() {
                    return productname;
                }

                public void setProductname(String productname) {
                    this.productname = productname;
                }

                public int getPrice() {
                    return price;
                }

                public void setPrice(int price) {
                    this.price = price;
                }

                public int getOldprice() {
                    return oldprice;
                }

                public void setOldprice(int oldprice) {
                    this.oldprice = oldprice;
                }

                public int getFreight() {
                    return freight;
                }

                public void setFreight(int freight) {
                    this.freight = freight;
                }

                public int getElecnum() {
                    return elecnum;
                }

                public void setElecnum(int elecnum) {
                    this.elecnum = elecnum;
                }

                public String getProducerno() {
                    return producerno;
                }

                public void setProducerno(String producerno) {
                    this.producerno = producerno;
                }

                public String getProducertel() {
                    return producertel;
                }

                public void setProducertel(String producertel) {
                    this.producertel = producertel;
                }

                public String getProducername() {
                    return producername;
                }

                public void setProducername(String producername) {
                    this.producername = producername;
                }

                public List<ProductphotosBean> getProductphotos() {
                    return productphotos;
                }

                public void setProductphotos(List<ProductphotosBean> productphotos) {
                    this.productphotos = productphotos;
                }

                public static class ProductphotosBean {
                    /**
                     * photo : /upload/pics/c628c4c7-c572-4600-8e86-5278c6612549.jpg
                     */

                    private String photo;

                    public String getPhoto() {
                        return photo;
                    }

                    public void setPhoto(String photo) {
                        this.photo = photo;
                    }
                }
            }

            public static class ProductSpecBean {
                /**
                 * id : 151
                 * specname : 课程
                 * price : 0
                 * elecNum : 0
                 */

                private int id;
                private String specname;
                private int price;
                private int elecNum;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getSpecname() {
                    return specname;
                }

                public void setSpecname(String specname) {
                    this.specname = specname;
                }

                public int getPrice() {
                    return price;
                }

                public void setPrice(int price) {
                    this.price = price;
                }

                public int getElecNum() {
                    return elecNum;
                }

                public void setElecNum(int elecNum) {
                    this.elecNum = elecNum;
                }
            }
        }
    }
}
